<?php
	class phonggiaodichbs
	{
		public $MaPhongGD = "";
		public $TenPhongGD = "";
		public $DiaDiemPhongGD = "";
		public $DienThoai = "";
		
		public function Them()
		{
			$db = new phonggiaodichdb();
			return $db->Them($this->MaPhongGD, 
							 $this->TenPhongGD,
							 $this->DiaDiemPhongGD,
							 $this->DienThoai);
		}
		
		public function CapNhat()
		{
			$db = new phonggiaodichdb();
			return $db->CapNhat($this->MaPhongGD, 
								$this->TenPhongGD,
								$this->DiaDiemPhongGD,
								$this->DienThoai,
								$this->MaPhongGDCu);
		}
		
		public function TonTaiTrongNhanVien()
		{
			$db = new phonggiaodichdb();
			return $db->TonTaiTrongNhanVien($this->MaPhongGD);
		}
		
		public function Xoa()
		{
			$db = new phonggiaodichdb();
			return $db->Xoa($this->MaPhongGD);
		}
		
		public function XoaTatCa()
		{
			$db = new phonggiaodichdb();
			return $db->XoaTatCa();
		}
		
		public function LayDanhSach()
		{
			$db = new phonggiaodichdb();
			return $db->LayDanhSach($this->MaPhongGD,
									$this->TenPhongGD,
									$this->DiaDiemPhongGD,
									$this->DienThoai);
		}
	}
?>